import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        int i = 0 ;
        int sum = 0 ;
        while(sum < 8888){
            i++ ;
            sum += i ;
        }
        System.out.println(i);

    }
    public static void main3(String[] args) {
        long b = 8 ;
        long sum = 0 ;
        for(int i = 0 ; i<10 ;i++){
             sum += b ;
             b = b *10 +8 ;
        }
        System.out.println(sum);
    }
    public static void main2(String[] args) {
        Scanner scan  = new Scanner(System.in) ;
        String str = scan.nextLine() ;
        StringBuffer stringBuffer = new StringBuffer( );
        for(int i = 0 ; i< str.length() ; i++){
            if(str.charAt(i) >= '0' && str.charAt(i) <= '9'){
                stringBuffer.append(str.charAt(i)) ;
            }
        }
        System.out.println(stringBuffer);

    }
    public static void main1(String[] args) {
        char ch = 'α' ;
        for(char i = ch ; i <= 'ω' ; i++){
            System.out.print(i + " ");
        }

    }
}
